
import {createStore} from 'vuex'
 
 
const store = createStore({
	state:{//存放状态
		"username":"foo",
		"age":18
	},
	getters: {
	   
	},
	mutations: {
	 changeName:(state,value) => {
		 state.username = value;
	 }
	},
	actions: {
	
	},
	modules:{
		
	}
})
 
export default store
